py3.extension_module('_test_fortran',
  [
    f2py_gen.process('test_fortran.pyf'),
    '_test_fortran.f'
  ],
  c_args: [Wno_unused_variable],
  fortran_args: fortran_ignore_warnings,
  link_args: version_link_args,
  dependencies: [lapack_dep, fortranobject_dep],
  install: true,
  link_language: 'fortran',
  subdir: 'scipy/io/tests',
  install_tag: 'tests'
)

py3.install_sources([
    '__init__.py',
    'test_fortran.py',
    'test_idl.py',
    'test_mmio.py',
    'test_netcdf.py',
    'test_paths.py',
    'test_wavfile.py'
  ],
  subdir: 'scipy/io/tests',
  install_tag: 'tests'
)

py3.install_sources([
    'data/Transparent Busy.ani',
    'data/array_float32_1d.sav',
    'data/array_float32_2d.sav',
    'data/array_float32_3d.sav',
    'data/array_float32_4d.sav',
    'data/array_float32_5d.sav',
    'data/array_float32_6d.sav',
    'data/array_float32_7d.sav',
    'data/array_float32_8d.sav',
    'data/array_float32_pointer_1d.sav',
    'data/array_float32_pointer_2d.sav',
    'data/array_float32_pointer_3d.sav',
    'data/array_float32_pointer_4d.sav',
    'data/array_float32_pointer_5d.sav',
    'data/array_float32_pointer_6d.sav',
    'data/array_float32_pointer_7d.sav',
    'data/array_float32_pointer_8d.sav',
    'data/example_1.nc',
    'data/example_2.nc',
    'data/example_3_maskedvals.nc',
    'data/fortran-3x3d-2i.dat',
    'data/fortran-mixed.dat',
    'data/fortran-sf8-11x1x10.dat',
    'data/fortran-sf8-15x10x22.dat',
    'data/fortran-sf8-1x1x1.dat',
    'data/fortran-sf8-1x1x5.dat',
    'data/fortran-sf8-1x1x7.dat',
    'data/fortran-sf8-1x3x5.dat',
    'data/fortran-si4-11x1x10.dat',
    'data/fortran-si4-15x10x22.dat',
    'data/fortran-si4-1x1x1.dat',
    'data/fortran-si4-1x1x5.dat',
    'data/fortran-si4-1x1x7.dat',
    'data/fortran-si4-1x3x5.dat',
    'data/invalid_pointer.sav',
    'data/null_pointer.sav',
    'data/scalar_byte.sav',
    'data/scalar_byte_descr.sav',
    'data/scalar_complex32.sav',
    'data/scalar_complex64.sav',
    'data/scalar_float32.sav',
    'data/scalar_float64.sav',
    'data/scalar_heap_pointer.sav',
    'data/scalar_int16.sav',
    'data/scalar_int32.sav',
    'data/scalar_int64.sav',
    'data/scalar_string.sav',
    'data/scalar_uint16.sav',
    'data/scalar_uint32.sav',
    'data/scalar_uint64.sav',
    'data/struct_arrays.sav',
    'data/struct_arrays_byte_idl80.sav',
    'data/struct_arrays_replicated.sav',
    'data/struct_arrays_replicated_3d.sav',
    'data/struct_inherit.sav',
    'data/struct_pointer_arrays.sav',
    'data/struct_pointer_arrays_replicated.sav',
    'data/struct_pointer_arrays_replicated_3d.sav',
    'data/struct_pointers.sav',
    'data/struct_pointers_replicated.sav',
    'data/struct_pointers_replicated_3d.sav',
    'data/struct_scalars.sav',
    'data/struct_scalars_replicated.sav',
    'data/struct_scalars_replicated_3d.sav',
    'data/test-44100Hz-2ch-32bit-float-be.wav',
    'data/test-44100Hz-2ch-32bit-float-le.wav',
    'data/test-44100Hz-be-1ch-4bytes.wav',
    'data/test-44100Hz-le-1ch-4bytes-early-eof-no-data.wav',
    'data/test-44100Hz-le-1ch-4bytes-early-eof.wav',
    'data/test-44100Hz-le-1ch-4bytes-incomplete-chunk.wav',
    'data/test-44100Hz-le-1ch-4bytes-rf64.wav',
    'data/test-44100Hz-le-1ch-4bytes.wav',
    'data/test-48000Hz-2ch-64bit-float-le-wavex.wav',
    'data/test-8000Hz-be-3ch-5S-24bit.wav',
    'data/test-1234Hz-le-1ch-10S-20bit-extra.wav',
    'data/test-8000Hz-le-1ch-1byte-ulaw.wav',
    'data/test-8000Hz-le-2ch-1byteu.wav',
    'data/test-8000Hz-le-3ch-5S-24bit-inconsistent.wav',
    'data/test-8000Hz-le-3ch-5S-24bit-rf64.wav',
    'data/test-8000Hz-le-3ch-5S-24bit.wav',
    'data/test-8000Hz-le-3ch-5S-36bit.wav',
    'data/test-8000Hz-le-3ch-5S-45bit.wav',
    'data/test-8000Hz-le-3ch-5S-53bit.wav',
    'data/test-8000Hz-le-3ch-5S-64bit.wav',
    'data/test-8000Hz-le-4ch-9S-12bit.wav',
    'data/test-8000Hz-le-5ch-9S-5bit.wav',
    'data/various_compressed.sav'
  ],
  subdir: 'scipy/io/tests/data',
  install_tag: 'tests'
)
